package agile.sudoku.core;

public class Cell {
	private int value;
	private boolean enabled;
	
	public Cell () {
		this.value = 0;
		enabled = true;
	}
	
	public Cell (Integer value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public boolean isEmpty() {
		if (value == 0)
			return true;
		else
			return false;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public void disable() {
		enabled = false;
	}
	
	public String toString() {
		if (isEmpty()) {
			return "[ ]";
		}
		return "[" + value + "]";
		
	}

}
